#include<stdio.h>
#include<iostream>
#include<algorithm>
using namespace std;
bool cmp(int a, int b)
{
	return a > b;
}
int main()
{
	int i, n, score[1000], scoreX, rank;
	bool rankflag;
	while (cin >> n)
	{
		rank = -1, rankflag = false;
		for (i = 0; i < n; i++)cin >> score[i];
		cin >> scoreX;
		sort(score, score + n, cmp);
		for (i = 0; i < n; i++)
		{
			if (score[i] == scoreX && !rankflag)
			{
				rank = i + 1;
				rankflag = true;
			}
			cout << score[i];
			if (i % 10 == 9 || i == n - 1)printf("\n");
			else printf(" ");
		}
		if (rank == -1)printf("no this score!\n");
		else printf("%d\n", rank);
	}
	return 0;
}